<h1><?php echo $this->translate("Loan information") ?></h1>
<p><?php echo $this->Loans->d->ClientFullName ?>

<div style="width: 10cm; float: left;">    

<hr class="view" style="margin-top: 0;" />

<table cellspacing="0" class="view">
    <tbody>
        <tr>
            <th><?php echo $this->translate("Loan code") ?></th>
            <td><?php echo $this->Loans->d->LoanId ?></td>
        </tr>
        <tr>
            <th><?php echo $this->translate("Status") ?></th>
            <td><?php echo $this->Loans->d->Status ?></td>
        </tr>
        <tr>
            <th><?php echo $this->translate("Product") ?></th>
            <td><?php echo $this->Loans->d->LoanProductName ?></td>
        </tr>
        <tr>
            <th><?php echo $this->translate("Principal") ?></th>
            <td><?php echo $this->Loans->d->Principal ?></td>
        </tr>
        <tr>
            <th><?php echo $this->translate("Name") ?></th>
            <td>
                <?php echo $this->Loans->d->ClientFullName ?>
                <?php echo $this->Loans->d->ClientNickName ? '-' . $this->Loans->d->ClientNickName : '' ?><br />
                <?php echo $this->Loans->d->ClientCode ?>
            </td>
        <tr>
            <th><?php echo $this->translate("Group") ?></th>
            <td>
                <?php echo $this->Loans->d->GroupId ? $this->Loans->d->GroupName . '<br />' : $this->translate("Individual") ?>
                <?php echo $this->Loans->d->GroupId ? $this->Loans->d->GroupId : '' ?>
            </td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Business") ?></th>
            <td><?php echo $this->Loans->d->BusinessName ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Business type") ?></th>
            <td><?php echo $this->Loans->d->BusinessType ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("P. line") ?></th>
            <td><?php echo $this->Loans->d->ProductLine ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Program") ?></th>
            <td><?php echo $this->Loans->d->ProgramName ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Branch") ?></th>
            <td><?php echo $this->Loans->d->LocationName ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("L. officer") ?></th>
            <td><?php echo $this->Loans->d->OfficerFullName ?></td>
        </tr>
    </tbody>
</table>

<hr class="view" />

<table cellspacing="0" class="view">
    <tbody>
        <tr>
            <th><?php echo $this->translate("Installments") ?></th>
            <td><?php echo $this->Loans->d->Installments ?> / <?php echo $this->Loans->d->PaymentFrequency ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Loan insurance") ?></th>
            <td><?php echo $this->Loans->d->LoanInsurancePct ?> %</td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Health ins.") ?></th>
            <td><?php echo $this->Loans->d->HealthInsurancePct ?> %</td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Admin. fee") ?></th>
            <td><?php echo $this->Loans->d->AdministrativeFeePct ?> %</td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Annual pct. rate") ?></th>
            <td><?php echo $this->Loans->d->AnnualPercentageRate ?> %</td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Principal grace rate") ?></th>
            <td><?php echo $this->Loans->d->PrincipalGraceRate ?> %</td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Delay penalty rate") ?></th>
            <td><?php echo $this->Loans->d->DelayPenaltyRate ?> % - <?php echo $this->translate("Daily") ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Plty. fixed charge") ?></th>
            <td><?php echo $this->Loans->d->DelayPenaltyFixedCharge ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Delay grace") ?></th>
            <td><?php echo $this->Loans->d->DelayGrace ?> - <?php echo $this->translate("Day(s)") ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Mandatory savings") ?></th>
            <td><?php echo $this->Loans->d->MandatorySavings ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Voluntary savings") ?></th>
            <td><?php echo $this->Loans->d->VoluntarySavings ?></td>
        </tr>
    </tbody>
</table>

<hr class="view" />

<table cellspacing="0" class="view">
    <tbody>
        <tr>
            <th><?php echo $this->translate("Delivery date") ?></th>
            <td><?php echo $this->replaceEmpty($this->Loans->d->DeliveryDate,'-') ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Exp. cancel date") ?></th>
            <td><?php echo $this->replaceEmpty($this->Loans->d->ExpectedCancelDate,'-') ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Ppal. balance") ?></th>
            <td><?php echo $this->replaceEmpty($this->Loans->d->BalancePrincipal,'-') ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Next pmt. date") ?></th>
            <td><?php echo $this->replaceEmpty($this->Loans->d->NextPaymentDate,'-') ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Delay") ?></th>
            <td><?php echo $this->replaceEmpty($this->Loans->d->CurrentDelay,'') ?> - <?php echo $this->replaceEmpty($this->Loans->d->CurrentDelay,'', $this->translate("Days")) ?></td>
        </tr>    
        <tr>
            <th><?php echo $this->translate("Pmt. amount") ?></th>
            <td><?php echo $this->replaceEmpty($this->Loans->d->ExpectedPaymentAmount,'-') ?></td>
        </tr>
    </tbody>
</table>
    
</div>

<div>
    <img style="padding-left: 10px; width:3cm" src="/default/photo/full/cat/i/id/<?php echo $this->Loans->d->ClientId ?>" />
</div>